#include <workspace/workspace.hpp>

int main() {
    wsp::workbranch br;

    br.submit<wsp::task::seq>([]{std::cout<<"task 1 done\n";},
                              []{std::cout<<"task 2 done\n";},
                              []{std::cout<<"task 3 done\n";},
                              []{std::cout<<"task 4 done\n";});

    // wait for tasks done (timeout: no limit)
    br.wait_tasks();
}